package com.dongdong.mapper;

import com.dongdong.model.TbOrder;
import com.dongdong.model.TbOrderExample;

import java.util.ArrayList;
import java.util.List;
import org.apache.ibatis.annotations.Param;

public interface TbOrderMapper {

    void insertBatch(@Param("orders") ArrayList<TbOrder> orders);  //批量增加


    void updateBatch(@Param("orderNo")ArrayList<String> orderNo,@Param("x") String x);  //修改订单状态

    int countByExample(TbOrderExample example);

    int deleteByExample(TbOrderExample example);

    int deleteByPrimaryKey(Long orderId);

    int insert(TbOrder record);

    int insertSelective(TbOrder record);

    List<TbOrder> selectByExample(TbOrderExample example);

    TbOrder selectByPrimaryKey(Long orderId);

    int updateByExampleSelective(@Param("record") TbOrder record, @Param("example") TbOrderExample example);

    int updateByExample(@Param("record") TbOrder record, @Param("example") TbOrderExample example);

    int updateByPrimaryKeySelective(TbOrder record);

    int updateByPrimaryKey(TbOrder record);




}